package com.cskaoyan.order.service;


import com.cskaoyan.order.form.CreateOrderRequest;
import org.springframework.transaction.annotation.Transactional;

/**
 * 订单相关业务
 */
@Transactional
public interface OrderCoreService {

    /**
     * 创建订单
     * @param request
     * @return
     */
    String createOrder(CreateOrderRequest request);

    /**
     * 取消订单
     * @return
     */
    void cancelOrder(String orderId);


    /**
     * 删除订单
     * @return
     */
    void deleteOrder(String orderId);

    /**
     * 修改订单状态
     * @param status
     * @param orderId
     */
    void updateOrder(Integer status, String orderId);

}
